package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "shipping_address")
public class ShippingAddress extends BaseEntity implements Serializable {
    /**
     * 收货地址id
     */
    @TableId(value = "SHIPPING_ADDRESS_ID", type = IdType.AUTO)
    private Integer shippingAddressId;

    /**
     * 用户id
     */
    @TableField(value = "USER_ID")
    private Integer userId;

    /**
     * 省
     */
    @TableField(value = "PROVINCE")
    private Integer province;

    /**
     * 市
     */
    @TableField(value = "CITY")
    private Integer city;

    /**
     * 区
     */
    @TableField(value = "DISTRICT")
    private Integer district;

    /**
     * 详细地址
     */
    @TableField(value = "DETAILED_ADDRESS")
    private String detailedAddress;

    /**
     * 手机号
     */
    @TableField(value = "USER_PHONE_NUMBER")
    private String userPhoneNumber;

    /**
     * 收货人
     */
    @TableField(value = "CONSIGNEE")
    private String consignee;

    /**
     * 状态（0.不是默认 1.默认 -1.删除）
     */
    @TableField(value = "SHIPPING_STATUS")
    private Integer shippingStatus;

    @TableField(exist = false)
    private CityView cityView;

    private static final long serialVersionUID = 1L;

    public static final String COL_SHIPPING_ADDRESS_ID = "SHIPPING_ADDRESS_ID";

    public static final String COL_USER_ID = "USER_ID";

    public static final String COL_PROVINCE = "PROVINCE";

    public static final String COL_CITY = "CITY";

    public static final String COL_DISTRICT = "DISTRICT";

    public static final String COL_DETAILED_ADDRESS = "DETAILED_ADDRESS";

    public static final String COL_USER_PHONE_NUMBER = "USER_PHONE_NUMBER";

    public static final String COL_CONSIGNEE = "CONSIGNEE";

    public static final String COL_SHIPPING_STATUS = "SHIPPING_STATUS";
}
